package com.ssy.lingxi.settle.accounts.controller;

import com.ssy.lingxi.settle.accounts.utils.Scheduler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 状态监测接口
 * @author 伍将
 * @date 2020/10/12
 * @version 2.0.0
 */
@RestController
@RequestMapping("/settle/accounts/")
public class ServiceStatusController {

    @RequestMapping("/status")
    public String status() {
        return "OK";
    }

    @Autowired
    private Scheduler scheduler;

    @RequestMapping(value = "test",method = RequestMethod.GET)
    public void test() {
        scheduler.ScheduledTask();
    }

}
